const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    '/dveapi',
    createProxyMiddleware({
      target: 'http://localhost:5200/',
      changeOrigin: true,
      pathRewrite: {
        "^/dveapi": "/"
      }
    })
  );
};